<?php

$num=2;
$num="3";
$result=match($num){
    1=>"one",
    2=>"two",
    "2"=>"string two",
    3,4,5=>"three or more",
    default=>"other"
};
echo $result;